#include <iostream>
#include <thread>
void myPrint(){
    std::cout<<"start my print...."<<std::endl;

    std::cout<<"end my print...."<<std::endl;
}

int main(){
    std::thread myt1(myPrint);
    myt1.join();     // 阻塞起来
    std::cout<<"主函数执行结束"<<std::endl;

    return 0;
}